package com.chen.pspms.service;

import com.chen.pspms.entity.CompanyInfo;
import com.chen.pspms.utils.ApplicationException;

import java.util.List;

public interface CompanyService {
    public Integer save(CompanyInfo companyInfo) throws ApplicationException;
    public Integer delete(Integer id) throws ApplicationException;
    public CompanyInfo findyById(Integer id) throws ApplicationException;
    public CompanyInfo findyByName(String name) throws ApplicationException;
    public Integer update(CompanyInfo companyInfo) throws ApplicationException;
    public List<CompanyInfo> findAll() throws ApplicationException;
}
